load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "azure",
    srcs = [
        "client.go",
        "discovery.go",
        "testing.go",
        "volumes.go",
    ],
    importpath = "sigs.k8s.io/etcdadm/etcd-manager/pkg/volumes/azure",
    visibility = ["//visibility:public"],
    deps = [
        "//pkg/privateapi/discovery",
        "//pkg/volumes",
        "//vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2020-06-01/compute",
        "//vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-06-01/network",
        "//vendor/github.com/Azure/go-autorest/autorest/azure/auth",
        "//vendor/github.com/Azure/go-autorest/autorest/to",
        "//vendor/k8s.io/klog/v2:klog",
    ],
)

go_test(
    name = "azure_test",
    srcs = [
        "client_test.go",
        "discovery_test.go",
        "volumes_test.go",
    ],
    data = glob(["testdata/**"]),
    embed = [":azure"],
    deps = [
        "//pkg/privateapi/discovery",
        "//pkg/volumes",
        "//vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2020-06-01/compute",
        "//vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-06-01/network",
        "//vendor/github.com/Azure/go-autorest/autorest/to",
    ],
)
